package com.hrg.gys.clfr.myapplication;

public class Dog {
    public String name;
    public int age;

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Dog(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        StringBuilder field2 = new StringBuilder();
        field2.append("[name： " + name);
        field2.append(";age： " + age + "]");
        return field2.toString();
    }


}
